for /l %%i in (1,1,500) do (
main_basic_cmd.exe COM3 115200 ..\cfg\at\atlist.cfg rep%%i.xls 100
)